# -*- coding: utf-8 -*-

GROUP_ID = -390848803  # new group id here
API_SEND_TEXT_MESSAGE = 'https://api.telegram.org/bot889600263:AAHPJ91mc5tEXtoOFKHI_U36_hxk8_FH95s/sendMessage'

MIDDLEWARE_CLASSES = (
    'webservices.middleware.UserMiddleware',
    'webservices.middleware.ApiSignMiddleware'
)

DEBUG = False

CONSUMER_REDIS = 'redis://@127.0.0.1:6379/0'
CP_REDIS_URL = 'redis://@127.0.0.1:6379/0'
AGENT_CONSUMER_REDIS = 'redis://@127.0.0.1:6379/2'
DATA_CENTER_REDIS = 'redis://@172.20.3.62:6379/5'
ASYNC_LOG_REDIS = 'redis://127.0.0.1:6379/6'
GENERAL_REDIS = 'redis://@127.0.0.1:6379/7'

MONGO_ADDR = 'mongodb://172.20.3.62:27017/'
ES_CLUSTER_CLIENT_URLS = {
    'maestro': {'http://172.20.3.62:9200': 1},
}
KAFKA_SERVERS = ['127.0.0.1']

FS_DIR = '/var/log/maestro/'

ES_KAFKA_GROUP_PREFIX = "test_kafka"
BACK_UP_KAFKA_GROUP_ID = "test_kafka_backup"

CONSUMER_TO_DC_KAFKA_GROUP_ID = "test_kafka_to_dc"

DWC_INDEX = ['dark3']
CP_INDEX = ['loki']
AGENT_INDEX = ['agent']
QK_INDEX = ['qk']
FRIDAY_INDEX = ['friday']
MF_PAY_INDEX = ['mf_pay']
OFFLINE_CALCULATION = ['offline_calculation']

QK_CHANNEL_LIST_API = 'http://18.136.80.153:9167/market/channel/channel_name/'
AGENT_CHANNEL_LIST_API = 'https://api.qt266.com/agent/api/bind_chn_list/'

AGENT_INDEX_MAP = {
    'dark2': 'dltgjm',
    'dark3': 'dltghj3',
    'dark4': 'dltgdark4',
    'tt': 'dltgtt',
    'zs': 'dltgzs'
}

PLATFORM_AMOUNT_ADJUST_RATE = 0.01

IS_PRODUCTION_ENV = False
INDEX_START_DATE = {
    'witch': '2019-02-12',
    'loki': '2018-11-01',
    'dark3': '2019-02-15',
    'dark4': '2019-08-01',
}

INSTALLED_APPS = [
    'django.contrib.contenttypes',
    'scripts',
    'api.internal.admin',
    'common.account',
    'common.permission',
    'common.merchant',
    'common.user',
]

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'maestro',
        'USER': 'root',
        'PASSWORD': 'maestrotest',
        'HOST': '172.20.3.62',
        'PORT': '3306'
    },
}

SAFE_DOG_CONFIG = {
    "api_domain": "proxy.xyz115.com:8888",
    "app_key": "vpU4FWwsXTb3n6WA-ClN0WT1c4QLcQG68i2kvtRD",
    "app_secret": "z0i24xOv288PW9bD0L8V9uWxN2EQA7AFre9LFC4y",
    "use_https": False,
}